import { BlobOptions } from 'buffer'

export type PostType = {
  id: string

  title: string

  content: string

  watch: number

  thumb: number

  user: UserInfoType

  create_time: Date

  update_time: Date
}

export type UserInfoType = {
  id: string

  nickname: string

  mobile: string

  avatar: string

  gender: string

  email: string

  intro: string

  tags: string

  desc: string

  posts: PostType[]

  create_time: Date
  update_time: Date
}

export type resType<T> = {
  data: T[]
  extra: {}
  message: string
  status: number
  success: Boolean
}
